package com.camelot.ccr.system.persistence;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * <pre>
 * 收款公司对应的实体
 * </pre>
 * @author Niu Lina
 * @version V0.1, 2014-1-7 上午10:45:34
 */
@Entity
@Table(name = "t_user")
public class User implements java.io.Serializable {

	private static final long serialVersionUID = -1506581774705067784L;
    /**
     * 主键id
     */
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
	private Integer id;
    /**
     * 用户名称
     */
    @Column(name = "username", length = 50)
	private String userName;
    /**
     * 密码
     */
    @Column(name = "userpwd", length = 50)
	private String userpwd;
    /**
     * 真实姓名
     */
    @Column(name = "reallyName", length = 50)
	private String reallyName;
    
	/**  
	 * 获取id  
	 * @return id id  
	 */
	public Integer getId() {
		return id;
	}
	/**  
	 * 设置id  
	 * @param id id  
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**  
	 * 获取userName  
	 * @return userName userName  
	 */
	public String getUserName() {
		return userName;
	}
	/**  
	 * 设置userName  
	 * @param userName userName  
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	/**  
	 * 获取userpwd  
	 * @return userpwd userpwd  
	 */
	public String getUserpwd() {
		return userpwd;
	}
	/**  
	 * 设置userpwd  
	 * @param userpwd userpwd  
	 */
	public void setUserpwd(String userpwd) {
		this.userpwd = userpwd;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", userpwd=" + userpwd + "]";
	}
	public String getReallyName() {
		return reallyName;
	}
	public void setReallyName(String reallyName) {
		this.reallyName = reallyName;
	}

}